/* VideoPlayer.css */
.video-player-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-js {
  width: 100%;
  height: 100%;
}

.custom-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.custom-controls.visible {
  opacity: 1;
  pointer-events: all;
}

.center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.play-pause-btn {
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.2s ease;
}

.play-pause-btn:hover {
  transform: scale(1.1);
  background: rgba(0,0,0,0.9);
}

.bottom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  pointer-events: none;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  margin-bottom: 15px;
  position: relative;
  pointer-events: all;
}

.progress-bar {
  height: 100%;
  background: #ff4444;
  transition: width 0.1s ease;
}

.progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-container:hover .progress-handle {
  opacity: 1;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-controls, .right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s ease;
}

.control-btn:hover {
  background: rgba(255,255,255,0.2);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border: none;
  border-radius: 2px;
  outline: none;
  pointer-events: all;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  pointer-events: all;
}

.speed-label {
  font-size: 14px;
}

.speed-select {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.speed-select:focus {
  outline: none;
}

.time-display {
  color: white;
  font-size: 14px;
  font-family: monospace;
}

.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .controls-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .left-controls, .right-controls {
    width: 100%;
    justify-content: center;
  }
  
  .play-pause-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .volume-slider {
    width: 60px;
  }
}